<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
  <h3>Ssaki:</h3>
  <xsl:apply-templates />
</xsl:template>

<xsl:template match="gatunki">
  <xsl:for-each select="nazwa">
    <xsl:sort select="." />
    <xsl:number value="position()" format="0001. " />
    <xsl:value-of select="."/>
    <br/>
  </xsl:for-each>
</xsl:template>

</xsl:stylesheet>

